package com.xiangxg.jvm.classloader;

/**
 * 启动类加载器的目录里添加Mytest1的class文件
 * 打印的类加载器就变成null（启动类加载器）了
 */
public class MyTest18_1 {
    public static void main(String[] args) throws Exception{
        MyTest16 loader1 = new MyTest16("loader1");
        Class<?> clazz = loader1.loadClass("com.xiangxg.jvm.classloader.MyTest1");
        System.out.println("class: "+clazz.hashCode());
        System.out.println("classLoader: " + clazz.getClassLoader());


    }
}
